1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
| #include <stdio.h> #include <string.h> int main(void) { int key[] = {34, 63, 52, 50, 114, 51, 24, 167, 49, 241, 40, 132, 193, 30, 122}; int a1[] ={4, 16, 8, 3, 5, 1, 4, 32, 8, 5, 3, 1, 3, 2, 8, 11, 1, 12, 8, 4, 4, 1, 5, 3, 8, 3, 33, 1, 11, 8, 11, 1, 4, 9, 8, 3, 32, 1, 2, 81, 8, 4, 36, 1, 12, 8, 11, 1, 5, 2, 8, 2, 37, 1, 2, 54, 8, 4, 65, 1, 2, 32, 8, 5, 1, 1, 5, 3, 8, 2, 37, 1, 4, 9, 8, 3, 32, 1, 2, 65, 8, 12, 1, 7, 34, 7, 63, 7, 52, 7, 50, 7, 114, 7, 51, 7, 24, 7, 167, 7, 49, 7, 241, 7, 40, 7, 132, 7, 193, 7, 30, 7, 122}; int v9 = 0; int v4 = 0; int i, j; int flag; int index = 0; for ( i = 0; i < 15; i++, index++) { for ( j = 48; j < 123; j++) { flag = j; v9 = index; while ( a1[v9] != 1) { switch ( a1[v9] ) { case 2: v4 = a1[v9 + 1] + flag; v9 += 2; break; case 3: v4 = flag - a1[v9 + 1]; v9 += 2; break; case 4: v4 = a1[v9 + 1] ^ flag; v9 += 2; break; case 5: v4 = a1[v9 + 1] * flag; v9 += 2; break; case 6: ++v9; break; case 8: flag = v4; ++v9; break; case 11: v4 = flag - 1; ++v9; break; case 12: v4 = flag + 1; ++v9; break; default: continue; } } if ( v4 == key[i]) { index = v9; printf("%c", j); break; } } } getchar (); return 0; }
|